package com.qqonline.broadcast;

import com.qqonline.conmon.DATA;
import com.qqonline.mpf.MainActivity;
import com.qqonline.mpf.PicPlayActivity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

public class PlayReceiver extends BroadcastReceiver {
	private PicPlayActivity activity;
	private MainActivity mainActivity;
	public PlayReceiver(PicPlayActivity activity){
		this.activity = activity;
	}
	public PlayReceiver(PicPlayActivity activity,MainActivity mainActivity){
		this.activity = activity;
		this.mainActivity = mainActivity;
	}
	@Override
	public void onReceive(Context context, Intent intent) {
		Bundle bundle = intent.getExtras();
		String openId = bundle.getString(DATA.bundleKey[1]);
		String name = bundle.getString(DATA.bundleKey[2]);
		if(activity.checkOpenId.equals(openId) || "".equals(activity.checkOpenId)){
			activity.loadPic(false);

		}
		else
		{
			
		}
	}

}
